Skip to main content

bottomColor

Type

property

Summary

Specifies the color of a three-D object's lowered edge.

Syntax

set the bottomColor of <object> to {empty | <colorName> | <RGBColor>}

Description

Objects whose threeD property is set to true appear to stick out of or recede into the screen. Use the bottomColor property to specify the color of the shadowed edge of the object.

Setting the bottomColor of an object to empty allows the bottomColor of the object's owner to show through. Use the effective keyword to find out what color is used for the object, even if its own bottomColor is empty.

If the object's showBorder property is false, the bottomColor has no effect.

The setting of the bottomColor property has different effects, depending on the object type:

  • The bottomColor of a stack determines the bottomColor of each object in the stack that does not have its own bottomColor.

  • The bottomColor of a card or group determines the color of the border around the card or group, as well as determining the bottomColor of each object in the card or group that does not have its own bottomColor.

  • The bottomColor of a button, player, EPS object, or graphic forms a border on the bottom and right edges of the object. If the object's threeD property is false, the bottomColor has no effect.

  • The bottomColor of a field forms a border on the top and left edges of the field and (if the field is a scrolling field) the bottom and right edges of the arrow boxes at the ends of the scrollbar and the top and left edges of the scroll area. The field's bottomColor also determines the color of the bottom and right edges of any text in the field whose textStyle is set to "threeDBox". If the field's threeD property is false, the field border is not affected.

  • The bottomColor of a scrollbar forms a border on the bottom and right edges of the arrow boxes at the ends of the scrollbar, and the top and left edges of the scroll area.

  • The bottomColor of an audio clip or video clip has no effect.

  • The bottomColor of an image is the sixth color in the image's color palette. (To set the color of the lowered edge of an image's border, set the bottomColor of the card, stack, or group that owns the image.)

If an object's bottomPattern is set, the pattern is shown instead of the color specified by the bottomColor.

Examples

set the bottomColor of scrollbar 1 to "purple"
set the bottomColor of field 1 to the topColor of me

command: group

glossary: object, property, EPS, audio clip, owner, object type, color palette, keyword, integer, video clip, hexadecimal, color reference

keyword: effective, threeDBox, field, button, scrollbar, graphic, player, card, image

object: image, field, stack

property: owner, bottomColor, topColor, hiliteBorder, threeDHilite, threeD, textStyle

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?